<?php
ob_start();
	include 'connect/connect.php';
	check_admin();
	$result = mysql_query("SELECT * FROM user") or die(mysql_error()); 
	echo "<table border='1' style='border-collapse: collapse' width='508'>";
echo   '<td width="77" bgcolor="#D6E0D8">USER</td>
		<td width="170" bgcolor="#D6E0D8">Tên &#273;&#7841;i lý</td>

		<td width="50" bgcolor="#D6E0D8">Liệt kê chi tiết</td>	
';
		
    while ($row = mysql_fetch_array($result))
    {
			  echo "<tr>";
			  echo "<td>" . $row['user'] . "</td>";
			  echo "<td>" . $row['tdl'] . "</td>";
			  echo "<td><a href=hienthi_chitiet.php?stt={$row['id']}>Chi tiết</a></td>";
			  echo "</tr>";
    }
	
echo "</table>";
echo "<p>";
echo 'Hom nay la '.date("d-m-y");
?>